<?php
include_once("Element.class.php");

class Textarea extends Element
{
	var $input = "<textarea name=\"{name}\" rows=\"{rows}\" cols=\"{cols}\" id=\"{id}\"{params}>{value}</textarea>";
	var $cols = 30;
	var $rows = 10;

	function Textarea($id)
	{
		parent::Element($id);
	}

	function __getHTML()
	{
		$search  = array('{name}', '{value}', '{id}', '{params}', '{rows}', '{cols}');
		$replace = array($this->getName(), $this->default, $this->ID, $this->getParams(), $this->rows, $this->cols);

		return str_replace($search, $replace, $this->input);
	}
}

?>